package cn.xn.hrms.domain.utils;

/**
 * @author: ysz
 * @date: 2023/07/28
 **/
public class FunctionUtils {

    public static BranchHandle isTrueOrFalse(boolean b) {
        return ((trueHandle, falseHandle) -> {
            if (b) {
                trueHandle.run();
            } else {
                falseHandle.run();
            }
        });
    }



}
